package com.project.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.server.dto.LoginDTO;
import com.project.server.dto.LoginVO;
import com.project.server.dto.UserDTO;
import com.project.server.dto.UserQueryDTO;
import com.project.server.entity.SysUser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface SysUserService extends IService<SysUser> {
    LoginVO login(LoginDTO loginDTO);

    Page<SysUser> getUserPage(Integer current, Integer size, UserQueryDTO query);

    void saveUser(UserDTO userDTO);

    void updateUser(UserDTO userDTO);

    void updateStatus(Long id, Integer status);

    SysUser getByUsername(String username);

    IPage<SysUser> page(Integer current, Integer size, String name, Long deptId);





}
